package com.cos.hospital.ui.patient.compare.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @Description: 所有编辑病历模块它爹
 * @Author: Kosmos
 * @Date: 2018年09月18日 21:00
 * @Email: KosmoSakura@foxmail.com
 */
public class ABBean implements MultiItemEntity {
    private int fldEleID;//信息 元素ID:模块唯一标志
    private int sorId;//排序id
    private String tagName;
    private SingleBean aRod;
    private SingleBean bRod;

    public ABBean(int fldEleID, SingleBean aRod, String tagName, int sorId) {
        this.fldEleID = fldEleID;
        this.aRod = aRod;
        this.tagName = tagName;
        this.sorId = sorId;
    }

    public ABBean(SingleBean bRod, int fldEleID, String tagName, int sorId) {
        this.fldEleID = fldEleID;
        this.bRod = bRod;
        this.tagName = tagName;
        this.sorId = sorId;
    }

    public SingleBean getaRod() {
        return aRod;
    }

    public void setaRod(SingleBean aRod) {
        if (aRod != null) {
            fldEleID = aRod.getFldEleID();
        }
        this.aRod = aRod;
    }

    public SingleBean getbRod() {
        return bRod;
    }

    public void setbRod(SingleBean bRod) {
        if (bRod != null) {
            fldEleID = bRod.getFldEleID();
        }
        this.bRod = bRod;
    }

    public String getTagName() {
        return tagName;
    }

    public int getSorId() {
        return sorId;
    }

    public void setSorId(int sorId) {
        this.sorId = sorId;
    }

    @Override
    public int getItemType() {
        return fldEleID;
    }
}
